<!DOCTYPE html><html><head><meta charset=utf-8><title>H3DU.FrameBufferInfo</title></head><body><h1> H3DU.FrameBufferInfo</h1><p><a href='index.html'>Back to documentation index.</a></p><a name='H3DU.FrameBufferInfo'></a>
<h3> H3DU.FrameBufferInfo(width, height)</h3>Describes a frame buffer. In the HTML 3D Library,
each frame buffer consists of a texture of a given size and a <i>renderbuffer</i> of the same
size to use as the depth buffer.<h4> Parameters</h4><ul><li><code>width</code> (Type: number)<br>Width to use for the frame buffer. Throws an error if this value is less than 0. The width will be set to this value rounded up.<li><code>height</code> (Type: number)<br>Height to use for the frame buffer. Throws an error if this value is less than 0. The height will be set to this value rounded up.</ul><h3> Methods</h3><ul><li><a href='#H3DU.FrameBufferInfo_getHeight'>getHeight</a><br>Gets the height to use for the frame buffer.<li><a href='#H3DU.FrameBufferInfo_getWidth'>getWidth</a><br>Gets the width to use for the frame buffer.<li><a href='#H3DU.FrameBufferInfo_resize'>resize</a><br>Changes the width and height of this frame buffer information object.</ul><a name='H3DU.FrameBufferInfo_getHeight'></a>
<h3> H3DU.FrameBufferInfo#getHeight()</h3>Gets the height to use for the frame buffer.<h4> Return Value</h4>Return value. (Type: number)<a name='H3DU.FrameBufferInfo_getWidth'></a>
<h3> H3DU.FrameBufferInfo#getWidth()</h3>Gets the width to use for the frame buffer.<h4> Return Value</h4>Return value. (Type: number)<a name='H3DU.FrameBufferInfo_resize'></a>
<h3> H3DU.FrameBufferInfo#resize(width, height)</h3>Changes the width and height of this frame buffer information object.<h4> Parameters</h4><ul><li><code>width</code> (Type: number)<br>New width to use for the frame buffer. Throws an error if this value is less than 0. The width will be set to this value rounded up.<li><code>height</code> (Type: number)<br>New height to use for the frame buffer. Throws an error if this value is less than 0. The height will be set to this value rounded up.</ul><h4> Return Value</h4>This object. (Type: <a href="H3DU.FrameBufferInfo.html">H3DU.FrameBufferInfo</a>)<p><a href='index.html'>Back to documentation index.</a></p></body></html>
